﻿<ribbon:RibbonWindow x:Class="ReaderSettings"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:ribbon="clr-namespace:Microsoft.Windows.Controls.Ribbon;assembly=RibbonControlsLibrary"
        Title="Reader Settings"
        x:Name="ReaderSettings"
        Width="Auto" Height="Auto" Icon="../../images/Main/keys.png" SizeToContent="WidthAndHeight">

    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>

        <ribbon:Ribbon x:Name="Ribbon">
            <ribbon:Ribbon.ApplicationMenu>
                <ribbon:RibbonApplicationMenu Visibility="Collapsed" >
                </ribbon:RibbonApplicationMenu>
            </ribbon:Ribbon.ApplicationMenu>
            <ribbon:Ribbon.QuickAccessToolBar>
                <ribbon:RibbonQuickAccessToolBar Visibility="Collapsed"></ribbon:RibbonQuickAccessToolBar>
            </ribbon:Ribbon.QuickAccessToolBar>

            <ribbon:RibbonTab x:Name="ReaderSettingsTab"
							  
							  Header="Reader Settings">
                <ribbon:RibbonGroup x:Name="Actions"
									Header="Actions">
                    <ribbon:RibbonButton x:Name="buttonRefresh"
										 LargeImageSource="../../images/actions/Refresh-64.png"
										 Label="Refresh" />
                    <ribbon:RibbonButton x:Name="buttonSave"
										 LargeImageSource="../../images/actions/ctrlsave.png"
										 Label="Save"/>
                </ribbon:RibbonGroup>
            </ribbon:RibbonTab>
        </ribbon:Ribbon>
        <Grid Grid.Row="1">
            <Grid.RowDefinitions>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
                <RowDefinition Height="auto"></RowDefinition>
            </Grid.RowDefinitions>
            <GroupBox Header="Reader file location" Grid.Row="0" Margin="5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBox Grid.Column="0" Width="250" Name="textboxReaderFilesLocation" Margin="5" IsReadOnly="True" ></TextBox>
                    <Button Grid.Column="1" Name="buttonBrowseReader" Margin="5" Width="100">Browse</Button>
                </Grid>
            </GroupBox>
            <GroupBox Header="Backup files location" Grid.Row="1" Margin="5">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                        <ColumnDefinition Width="auto"></ColumnDefinition>
                    </Grid.ColumnDefinitions>
                    <TextBox Grid.Column="0" Width="250" Name="textboxBackupFilesLocation" Margin="5" IsReadOnly="True" ></TextBox>
                    <Button Grid.Column="1" Name="buttonBrowseBackup" Margin="5" Width="100">Browse</Button>
                </Grid>
            </GroupBox>
            <GroupBox Header="Reader/File Settings" Grid.Row="2" Margin="5" Grid.ColumnSpan="2">
                <StackPanel >
                    <StackPanel Margin="5" Orientation="Horizontal" >
                        <CheckBox Name="cbRemoveFilesFromReader"  Margin="1,2,1,2" IsChecked="True" VerticalAlignment="Center"></CheckBox>
                        <Label Margin="1,2,1,2" VerticalAlignment="Center">Remove files from the Reader?</Label>
                    </StackPanel>
                    <StackPanel Margin="5" Orientation="Horizontal" >
                        <CheckBox Name="cbReaderFileHeaderFirstRow"  Margin="1,2,1,2" IsChecked="True" VerticalAlignment="Center"></CheckBox>
                        <Label Margin="1,2,1,2" VerticalAlignment="Center">First row contains Headers</Label>
                    </StackPanel>
                    <StackPanel Margin="5" Orientation="Horizontal" >
                        <TextBox Width="50" Name="textboxRFIDNumLength" Margin="5"></TextBox>
                        <Label Margin="1,2,1,2" VerticalAlignment="Center">RFID Number length</Label>
                    </StackPanel>
                    <StackPanel Margin="5" Orientation="Horizontal" >
                        <TextBox Width="50" Name="textboxReaderDelimiter" Margin="5"></TextBox>
                        <Label Margin="1,2,1,2" VerticalAlignment="Center">Row delimiter</Label>
                    </StackPanel>
                    <StackPanel Margin="5" Orientation="Horizontal" >
                        <TextBox Width="150" Name="textboxReaderFileExtension" Margin="5"></TextBox>
                        <Label Margin="1,2,1,2" VerticalAlignment="Center">Reader file extension. Example *.txt</Label>
                    </StackPanel>
                    <StackPanel Margin="5" Orientation="Horizontal" >
                        <TextBox Width="150" Name="textboxReaderRowFormat" Margin="5"></TextBox>
                        <Label Margin="1,2,1,2" VerticalAlignment="Center">Reader row format</Label>
                    </StackPanel>
                    <StackPanel Margin="5" Orientation="Horizontal" >
                        <CheckBox Name="cbReaderCreateAssetData"  Margin="1,2,1,2" IsChecked="True" VerticalAlignment="Center"></CheckBox>
                        <Label Margin="1,2,1,2" VerticalAlignment="Center">Create Asset data. NOTE : Asset Number will be generated from RFID No</Label>
                    </StackPanel>
                </StackPanel>
            </GroupBox>
        </Grid>

    </Grid>
</ribbon:RibbonWindow>
